package com.gulimall.gulimallorder.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gulimall.common.utils.PageUtils;
import com.gulimall.gulimallorder.entity.OrderEntity;
import com.gulimall.gulimallorder.vo.OrderConfirmVo;
import com.gulimall.gulimallorder.vo.OrderSubmitVo;
import com.gulimall.gulimallorder.vo.SubmitOrderResponseVo;

import java.util.Map;
import java.util.concurrent.ExecutionException;

/**
 * 订单
 *
 * @author niujiaxing
 * @email sunlightcs@gmail.com
 * @date 2025-05-09 20:37:12
 */
public interface OrderService extends IService<OrderEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 获取订单确认页面信息
     * @return
     */
    OrderConfirmVo confirmOrder() throws ExecutionException, InterruptedException;
    //下单
    SubmitOrderResponseVo submitOrder(OrderSubmitVo vo);
}

